package router

import (
	"github.com/gin-gonic/gin"
	"zg3/internal/api"
	"zg3/internal/middleware"
)

func UserRouter(c *gin.RouterGroup) {
	userRouter := c.Group("user")
	{
		userRouter.POST("register", api.UserRegister)
		userRouter.POST("login", api.UserLogin)
		userRouter.Use(middleware.Middleware())
		{
			userRouter.POST("update", api.UserUpdate)
		}
	}
}
